package com.gxa.p2p.service.impl;

import com.gxa.p2p.mapper.MarkImgsMapper;
import com.gxa.p2p.pojo.MarkImgs;
import com.gxa.p2p.service.MarkImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：looker
 * @date ：Created in 2021/10/29 10:22
 */
@Service
public class MarkImgServiceImpl implements MarkImgService {

    @Autowired
    MarkImgsMapper markImgsMapper;

    @Override
    public void add(MarkImgs markImgs) {
        markImgsMapper.add(markImgs);
    }

    @Override
    public List<MarkImgs> findByMid(Long id) {
        List<MarkImgs> imgsByMid = markImgsMapper.findImgsByMid(id);
        return imgsByMid;
    }
}
